package com.cloud.shopping.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cloud.shopping.order.model.Order;
import com.cloud.shopping.order.model.OrderRefund;

/**
 * @author John.Zhang
 * @version Id: OrderService, v 0.1 2021/1/3 21:00 ZhiYong Exp $
 */
public interface OrderService extends IService<Order> {

    /**
     * 添加订单
     * @param order order
     * @return Boolean
     */
    Boolean add(Order order);

    /**
     * 退款
     * @param orderRefund orderRefund
     * @return int
     */
    int refund(OrderRefund orderRefund);

    /**
     * 支付成功修改状态
     * @param id id
     * @return int
     */
    int updateAfterPayStatus(String id);

}
